unit AdministrativoFr;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
  ExtCtrls, Buttons, Menus, ComCtrls, MainFr, DataRecord;

type

  { TAdministrativoMainFrame }

  TAdministrativoMainFrame = class(TMainFrame)
    MenuItem8: TMenuItem;
    MenuItemAlteraSenha: TMenuItem;
    MenuItemCadastro: TMenuItem;
    MenuItemCidade: TMenuItem;
    MenuItemFinalSessao: TMenuItem;
    MenuItemGrupo: TMenuItem;
    MenuItemPessoa: TMenuItem;
    MenuItemRamo: TMenuItem;
    MenuItemSair: TMenuItem;
    MenuItemUnidade: TMenuItem;
    ToolBar1: TToolBar;
    ToolButton1: TToolButton;
    ToolButton10: TToolButton;
    ToolButton11: TToolButton;
    ToolButton12: TToolButton;
    ToolButton13: TToolButton;
    ToolButton15: TToolButton;
    ToolButton17: TToolButton;
    ToolButton19: TToolButton;
    ToolButton2: TToolButton;
    ToolButton21: TToolButton;
    ToolButton3: TToolButton;
    ToolButton4: TToolButton;
    ToolButton5: TToolButton;
    ToolButton6: TToolButton;
    ToolButton7: TToolButton;
    ToolButton8: TToolButton;
    ToolButton9: TToolButton;
   procedure SetDataRecord(Data: TDataRecord); override;

  private
    { private declarations }
  public
    { public declarations }
  end;

implementation

{ TAdministrativoMainFrame }

procedure TAdministrativoMainFrame.SetDataRecord(Data: TDataRecord);
begin
  // Verifica se o frame possui módulo de dados
  if (MainDataModule <> nil) then
    // Atribui um DataRecord ao DataSet
    MainDataModule.SetDataRecord(Data);
end;

initialization
  {$I administrativofr.lrs}

end.

